/**
 * Created by yoyoyk on 2017/5/12.
 */
/**
 * Created by yoyoyk on 2017/5/11.
 */

import Relay from "react-relay";
export default class getProcessDemand extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { getProcessDemand }`;
    }

    getVariables() {
        return {
            argsInput: {
                pdId:this.props.pdId
            }
        }
    }

    getFatQuery() {
        return Relay.QL`fragment on getProcessDemandPayload {
            clientMutationId
            getProcessDemand{
                processDemand{
                    fileJson
                    imgJson
                    pdId
                    processDemandId
                    careContent
                }
                errorCode
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on getProcessDemandPayload  {
                      clientMutationId
                      getProcessDemand{
                        processDemand{
                            fileJson
                            imgJson
                            pdId
                            processDemandId
                            careContent
                        }
                        errorCode
                    }
                 }
            `]
        }];
    }

}
